﻿namespace HelloWorld.Utils
{
    public class ApiResponse
    {
        public int Code { get; set; }
        public object Data { get; set; }
        public string Msg { get; set; }

        public List<string> Errors { get; set; }

        public ApiResponse(int code, object data, string msg, List<string>? errors = null)
        {
            Code = code;
            Data = data;
            Msg = msg;
            Errors = errors ?? new List<string>();
        }
    }
}
